#!/usr/bin/python
# -*- coding: UTF-8 -*-

import os

# Get the current working directory
# cwd = os.getcwd()
# print("Current working directory is:", cwd)

# Get the list of files and directories in the current working directory
# files_and_dirs = os.listdir(cwd)
# print("Files and directories in the current working directory are:")
# for file_or_dir in files_and_dirs:
#     print(file_or_dir)

# Create a new directory
# new_dir = "new_dir"
# os.mkdir(new_dir)
# print("New directory created:", new_dir)


# Rename a file or directory
old_name = "new_dir"
new_name = "renamed_dir"
os.rename(old_name, new_name)
print("Directory renamed from", old_name, "to", new_name)

# Remove a file or directory
# os.remove(new_name)
# print("Directory removed:", new_name)

# Remove a directory and all its contents
# os.rmdir(new_name)
# print("Directory removed:", new_name)

# Get the size of a file or directory
# size = os.path.getsize(new_name)
# print("Size of", new_name, "is:", size, "bytes")

# Get the modification time of a file or directory
# mod_time = os.path.getmtime(new_name)
# print("Modification time of", new_name, "is:", mod_time)

# Get the absolute path of a file or directory
# abs_path = os.path.abspath(new_name)
# print("Absolute path of", new_name, "is:", abs_path)

# Check if a file or directory exists

